package com.hmall.mapper;

import com.hmall.model.SysQuestionAnswer;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysQuestionAnswerMapper extends MyMapper<SysQuestionAnswer> {
    List<SysQuestionAnswer> selectByQuestionId(@Param("question_id") Integer question_id);

    Integer selectLastAnswerId();

    void deleteByQUestionId(@Param("question_id") Integer question_id);
}